package com.gr.grpicturebackend.utils;

import java.net.MalformedURLException;
import java.net.URL;

public class COSUtils {

    public static String getObjectKey(String url) throws MalformedURLException {
        URL u = new URL(url);
        String key = u.getPath().substring(1);
        return key;
    }
}

